package erp.server.message.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import erp.server.message.enums.MessageStatus;
import erp.server.message.enums.MessageType;
import lombok.Data;

import java.util.Date;

@Data
public class MessageVO {
    private Long id;
    private Long userId;
    private Long orgId;
    private Long desUserId;
    private Long desOrgId;
    private String title;
    private String content;
    private String attachmentPath;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sentTime;
    private MessageType type;
    private MessageStatus status;
}
